package org.example.blog_system.mapper;


import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.example.blog_system.model.UserInfo;

@Mapper
public interface UserMapper {

    // 根据用户名查找user

    UserInfo getUserByName(@Param("username")String username) ;


    UserInfo getUserByBlogId(@Param("blogId") Integer blogId);


    Integer createUser(@Param("user") UserInfo userInfo);

}
